@import '../../../styles/variables.less';
@import '../../../styles/mixin.less';

.order-pay {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: @grap-bg;

    >.user-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 94px;
        padding: 24px 0 16px;

        >.header-img {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            border: 0.5px solid @default-border;
            object-fit: cover;
        }

        >.seller-info {
            display: flex;
            align-items: center;
            height: 22px;
            padding-top: 8px;

            >.name {
                max-width: 300px;
                font-size: 16px;
                font-weight: 500;
                line-height: 22px;
                color: @label-color;
            }
        }
    }

    .pay-content {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        background-color: @white;
        border-radius: 8px 8px 0 0;

        .input-section {
            box-sizing: border-box;
            height: 110px;
            margin: 0 20px;
            border-bottom: 0.5px solid @border-color;

            .label {
                display: flex;
                align-items: center;
                padding-top: 20px;
                line-height: 20px;

                >.title {
                    flex: 1;
                    font-size: 14px;
                    font-weight: 500;
                    color: @label-color;
                }
            }

            .input-box {
                position: relative;
                display: flex;
                align-items: flex-end;
                height: 56px;
                padding: 10px 0;
                font-size: 40px;
                font-weight: 500;
                line-height: 56px;
                color: @label-color;

                .tip {
                    position: absolute;
                    top: 0;
                    left: 23px;
                    display: flex;
                    align-items: center;
                    height: 12px;
                    padding: 0 2px;
                    font-size: 8px;
                    font-weight: 500;
                    line-height: 12px;
                    color: @white;
                    background-color: @info-color;
                    border-radius: 2px;

                    &::after {
                        position: absolute;
                        bottom: -1px;
                        left: 50%;
                        width: 2px;
                        height: 2px;
                        margin-left: -1px;
                        content: '';
                        background-color: @info-color;
                        transform: rotate(45deg);
                    }
                }

                .unit {
                    margin-right: 8px;
                    font-size: 24px;
                    line-height: 46px;
                }

                .focus {
                    width: 3px;
                    height: 40px;
                    margin: 8px 0 8px 2px;
                    background-color: @primary-color;
                    border-radius: 3px;
                    animation: twinkling 1s infinite;
                }

                .animated {
                    animation-duration: 1s;
                    animation-fill-mode: both;
                }

                @-webkit-keyframes twinkling {
                    0% {
                        opacity: 0;
                    }

                    50% {
                        opacity: 1;
                    }

                    100% {
                        opacity: 0;
                    }
                }
            }
        }

        .content-box {
            padding: 16px 20px 0;
            position: relative;
            border-radius: 8px;
            flex: 1;

            .add-remark {
                position: absolute;
                bottom: 16px;
                font-size: 14px;
                line-height: 20px;
                color: @blue;

                &:active {
                    opacity: 0.6;
                }
            }

            .cell-group {
                .note-cell {
                    height: 56px;
                    display: flex;
                    align-items: center;
                    padding: 0 8px 0 0;
                    color: @title-color;
                    background: linear-gradient(270deg, #f6f6f6 0%, rgba(246, 246, 246, 0) 100%);
                    border-radius: 8px;

                    :deep(.van-cell__title) {
                        margin: 0 16px 0 8px;
                        .ellipsis-one();
                    }

                    :deep(.van-cell__right-icon) {
                        color: @info-color;
                    }
                }

                .title {
                    font-size: 14px;
                    line-height: 20px;
                    color: @title-color;
                    .ellipsis-one();
                }

                .desc {
                    font-size: 12px;
                    line-height: 17px;
                    .ellipsis-one();
                }
            }
        }

        .keyborder-box {
            box-sizing: border-box;
            width: 100%;
            height: 211px;
            padding: 7px 7px;
            user-select: none;
            background-color: @default-bg;

            .row-cell,
            .key-cell {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .key-left {
                flex: 1;
                margin-right: 7px;
            }

            .row-cell {
                margin-top: 7px;
            }

            .icon-del {
                width: 22px;
                height: 22px;
            }

            .key-item {
                position: relative;
                box-sizing: border-box;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 85px;
                height: 44px;
                font-size: 20px;
                font-weight: 500;
                line-height: 44px;
                background-color: @white;
                border-radius: 8px;

                &:active {
                    opacity: 0.6;
                }
            }

            .key-zero {
                width: 177px;
            }

            .key-confirm {
                height: 146px;
                margin-top: 7px;
                font-size: 18px;
                font-weight: 500;
                color: @white;
                background-color: @primary-color;
            }
        }

        .add-remark {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            font-size: 14px;
            line-height: 20px;
            color: @primary-color;
            text-align: center;
        }
    }
}

.popup-header {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .left,
    .right {
        width: 52px;
        height: 28px;
        line-height: 28px;
        display: flex;
        align-items: center;
    }

    .title {
        flex: 1;
        text-align: center;
        font-size: 17px;
        color: @label-color;
        font-weight: 500;
    }

    .right {
        box-sizing: border-box;
        background-color: @primary-color;
        color: @white;
        border-radius: 6px;
        font-size: 14px;
        justify-content: center;
    }
}

.popup-content {
    margin: 0 16px;
    border-radius: 10px;

    .form-item {
        display: flex;
        align-items: center;
        font-size: 16px;
        height: 54px;
        line-height: 36px;
        box-sizing: border-box;

        &::after {
            right: 0;
        }
    }

    .field-textarea {
        padding: 17px 16px;
        display: flex;
        align-items: flex-start;
    }
}